<template>
  <div>
    <template>
      <el-table :data="Evaluation" style="width: 100%" max-height="650px">
        <el-table-column prop="WorkerName" label="职工名称" width="300" align="center"></el-table-column>
        <el-table-column prop="CourseName" label="课程名称" width="300" align="center"></el-table-column>
        <el-table-column prop="address" label="分值" width="300" align="center"></el-table-column>
      </el-table>
    </template>
  </div>
</template>

<script>
export default {
  data() {
    return {
      Evaluation: [],
      user: ""
    };
  },
  created() {
    this.GetWorkerEvaluation();
  },
  mounted() {},
  methods: {
    GetWorkerEvaluation() {
      this.user = JSON.parse(sessionStorage.getItem("user"));
      this.$axios({
        method: "get",
        url: this.$api.GetWorkerEvaluation,
        data: {},
        params: {
          token: this.user.Token
        }
      }).then(res => {
        console.log(res);
        this.Evaluation = res.data.message;
      });
    }
  }
};
</script>

<style scoped>
</style>
